﻿@model WI.CandidateManager.Common.Data.Entities.AnswerBase

@{
    ViewBag.Title = @Resources.Common.CommonAnswerDelete;
}

<h2>@Resources.Common.CommonAnswerDelete</h2>

<h3>@Resources.Common.CommonDeleteQuestion</h3>

<table class="bordered">
    <tr>
        <td class="vertical-header">@Html.DisplayNameFor(model => model.Text)</td>
        <td><pre>@Html.DisplayFor(model => model.Text, new { @class = "" })</pre></td>
    </tr>
        <tr>
        <td class="vertical-header">@Html.DisplayNameFor(model => model.IsCorrect)</td>
        <td>@Html.DisplayFor(model => model.IsCorrect, new { @class = "" })</td>
    </tr>
</table>

@using (Html.BeginForm("DeleteAnswer", "Tests", new { @AnswerId = Model.Id }, FormMethod.Post))
{
    <p>
        @Html.ActionLink(@Resources.Common.CommonButtonCancel, "EditQuestion", new { @QuestionId = Model.QuestionBase.Id }, new { @class = "common-btn-large BlueColor" }) <input type="submit" value=@Resources.Common.CommonButtonDelete class="common-btn-large RedColor"/>
    </p>
}
